'''
窗口截图的常用方法：
(1)get_screenshot_as_file()		截图函数
(2)save_screenshot()			截图函数
'''
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options

driver = webdriver.Chrome(options=options)
driver.get(r'https://www.baidu.com/')
sleep(1)

driver.get_screenshot_as_file(r'baidu1.png')
driver.save_screenshot(r'baidu2.png')
driver.quit()